#include "mylabel.h"

#include <QDebug>

MyLabel::MyLabel(QWidget *parent) : QLabel(parent)
{

}


void MyLabel::enterEvent(QEvent *event)
{
    emit mouseEntered();
    QLabel::enterEvent(event);
    qDebug() << "进来了";
}

void MyLabel::leaveEvent(QEvent *event)
{
    emit mouseLeft();
    QLabel::leaveEvent(event);
    qDebug() << "出去了";
}
